Merged
Conversation
The replicate.lib._schema module imports the packaging library but it wasn't listed as a dependency in pyproject.toml, causing ModuleNotFoundError when the module is imported. Fixes import error: "ModuleNotFoundError: No module named 'packaging'"
dgellow
approved these changes
Aug 22, 2025
Collaborator
dgellow
left a comment
There was a problem hiding this comment.
LGTM!
I would recommend to run uv sync locally to update the uv.lock lockfile before merging
by running `uv sync`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is an attempt to fix a
ModuleNotFoundErrorwhen importing the replicate library by adding the missingpackagingdependency topyproject.toml.Not sure if this is the right way to add this dep. @dgellow I could use your guidance here!
Problem
The
replicate.lib._schemamodule importspackaging.versionbut thepackaginglibrary wasn't declared as a dependency, causing runtime errors:Original error